package graph.mcg;

import java.util.ArrayList;
import java.util.List;

public class EntryNode extends CGNode {
	private ConstraintInfo info;
	
	public EntryNode() {
		nextnode = null;
	}
	
	public EntryNode(ConstraintInfo info){
		this.info = info;
		nextnode = null;
	}

	public String toString() {
		return "Entry";
	}

	public ConstraintInfo getInfo() {
		return info;
	}

	@Override
	public List<CGNode> nextPossibleNodes() {

		ArrayList<CGNode> nodes = new ArrayList<CGNode>();
		nodes.add(nextnode);
		return nodes;
	}

	@Override
	public String greateCLPTerm() {
		
		return "lib(ic), " + "lib(listut),";
	}
}
